export default {
    jwtSecret: '1472580963',
    cookieSecret: '1472580963',
    sessionSecret: '1472580963',
    authCookieKey: 'auth-cookie',
    cookie: {
        maxAge: 1000 * 60 * 60 * 24,
        // httpOnly: true,
        signed: true,
    },
    sessionCookie: {
        maxAge: 1000 * 60 * 60 * 24,
        // httpOnly: true,
    },
    adminRoot: 'admin*',
    adminPath: '/admin',
    shopApiPath: '/shop',
    SchemaOptions: {
        timestamps: { createdAt: 'createdTime', updatedAt: 'updatedTime' },
    },
    uploadDir: 'upload',
    assetsPath: '/assets',
    jimpQualityList: [0.5, 0.8],
    corsRegExp: [/^http:\/\/localhost/, /^http:\/\/192\.168/, /^http:\/\/10\.71/],
    redisOptions: {
        port: 6379,
        host: '127.0.0.1',
        password: '',
        db: 0,
    },
    httpModuleOptions: {
        timeout: 30 * 1000,
        withCredentials: true,
        headers: {
            'User-Agent':
                'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
        },
    },
    bombingPhonePattern: /\[phone\]/gi,
    timeStampPattern: /\[timestamp\]/gi,
    xfOcrSetting: {
        APPID: 'cd17ae9c',
        APISecret: 'NjliNGJmM2M5MmU4ODc0MmQ3NDc5MWE5',
        // APISecret: 'apisecretXXXXXXXXXXXXXXXXXXXXXXX',
        APIKey: '3524714d7b8e4762de67315cefd334f9',
        signature_origin: `host: api.xf-yun.com\ndate: ${new Date().toUTCString()}\nPOST /v1/private/sf8e6aca1 HTTP/1.1`,
        // signature_origin: `host: api.xf-yun.com\ndate: Wed, 11 Aug 2021 06:55:18 GMT\nPOST /v1/private/sf8e6aca1 HTTP/1.1`,
        date: new Date().toUTCString(),
        url: 'https://api.xf-yun.com/v1/private/sf8e6aca1',
        host: 'api.xf-yun.com',
    },
    cartKey: 'cart',
    nodeMailConfig: {
        QQ: {
            service: 'qq',
            auth: {
                user: '776875292@qq.com',
                pass: 'ugpvmhsvwluebcgb',
            },
        },
        mailOptions: {
            from: '"VanSir"<776875292@qq.com>',
            subject: '验证码',
        },
    },
    emailPattern: /^\w+@[\da-z\.-]+\.([a-z]{2,6}|[\u2E80-\u9FFF]{2,3})$/,
    emialCodeLimit: 999,
    shopUserPasswordPattern: /^[a-zA-Z0-9]{6,16}$/,
    phonePattern: /1[3-9]\d{9}/,
    shopauthRoutes: ['/shop/buy*', '/shop/address*'],
    aliPay: {
        options: {
            app_id: '2021000121605554',
            appPrivKeyFile:
                'MIIEpAIBAAKCAQEAhqgAxhER5Sb8qi22XaAbyCBgXLr8/5IHnwMVwRo9dEHUyJxeMuS+INXRKZlWk+CL9GL2H3OZ3QjFZd8QMylj4wPiWpKVYW/xVGLBJCDhNZA4p/pBANiY2sfCFQ8jJQqccXiqIBNJYUB4STttCsvRY5w21+5lD21ByfIOVXy9olSRq/g1hEv/YEEFCX/rleAsvaBjHOR2YXeOEjIo3+t/MpoC4EBiSLIhsxCKrdd+MgKoJgE+I+lAKprcRF64dT2StCuV3r1zW0zy7nDZJOrfIeUCtTPIkHGRzD8DkrD/y+ntCbfWubRfADkglVqNXcHHrJkfB1UK/src997DY5EfoQIDAQABAoIBABoMignG55VS03IAYdT+0iEG0l1d9u9hyoOiTyUJ9HV2/rjINxjVU0p60nmfpjX5LFncgwxWip9NwRIR8spS6XXTHIi07pzo0OCoMgDRM3/vJGaqbMTDId7A4fS89umFgfoZg5+s23cqx5ozGscJ4rnIUHu5LGetlRqB7u/ur6ilNLpzj8iCmOhrK6sojV52JMALmrT6aBc0wJWoHKN9XNy4Eo5yQvvDRUaO9nnKfYyzMkkBSYRG/udM+O7zrqEIg6nPzhWFavl8XXLTM/CDFUMbQLAYyW6iTLL4awFPP6W/+VUj2bthU6zc0RnfhZyFkUQWEUzbzH+UBzfOaX7weCECgYEA9u9CNdbiVORW6tj/vTLimbkU1D0rzE5m5SdM3U6brpXbkl4uAycYA8ZCWqrvmElX0G/9BIqnjBM1JcviIyytp52ZD0Tk8Dfs9E5UssyuSid8Vz4bi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ZpOMThuvpty+hBvkmRnzfjQ20hFLPA+59wuPf2GKMc6DnFwGn9vZnUhqN8pQ3z78ONVNdjxM8g5+lMKOORGmX/SwIDAQAB',
        },
        basicParams: {
            notify_url: 'http://zrhg5u.natappfree.cc/shop/buy/aliPayNotify',
            return_url: 'http://localhost:8081/#/shop/checkout',
        },
    },
    notify_url: 'http://y7d4rr.natappfree.cc',
};
